Conversation
…filter config GatewayController resolved cross-namespace AIServiceBackend/InferencePool backends (and their BackendSecurityPolicy credentials) into the shared extproc filter-config Secret without checking a ReferenceGrant, even though AIGatewayRouteController already enforces one for HTTPRoute generation. Gate both backend kinds on the same check. Also reconcile BackendSecurityPolicy on grant changes. ReferenceGrantController only requeued AIGatewayRoutes when a ReferenceGrant changed, so a BackendSecurityPolicy left NotAccepted for lacking a grant to its Secret wouldn't re-reconcile until something else touched it. Requeue affected BackendSecurityPolicies too. Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
✅ Deploy Preview for theagentrouter canceled.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
LGTM! @nacx one related gap I noticed (pre-existing, not introduced here): we don’t reconcile any On delete, |
|
That's correct. Let me include that in this PR |
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
|
Done. PTAL! |
|
/retest |
|
@nacx the delete grant fix looks good, but there’s one more gap for revoke. Even when deletion triggers an Could we still sync parent Gateways (update the HTTPRoute) when the route fails for a missing/invalid ReferenceGrant? |
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
|
Good catch. I've added it to still run the reconciles if there are referencegrant failed validations, and still returning an error at the end. PTAL |
|
/retest |
Description
GatewayController resolved cross-namespace AIServiceBackend/InferencePool backends (and their BackendSecurityPolicy credentials) into the shared extproc filter-config Secret without checking a ReferenceGrant, even though AIGatewayRouteController already enforces one for HTTPRoute generation. Gate both backend kinds on the same check.
Also reconcile BackendSecurityPolicy on grant changes. ReferenceGrantController only requeued AIGatewayRoutes when a ReferenceGrant changed, so a BackendSecurityPolicy left NotAccepted for lacking a grant to its Secret wouldn't re-reconcile until something else touched it. Requeue affected BackendSecurityPolicies too.
Related Issues/PRs (if applicable)
N/A
Special notes for reviewers (if applicable)
N/A